﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _20_Strategy
{
    public class Student
    {
        /// <summary>
        /// 学号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 学生姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 分数
        /// </summary>
        public int Score { get; set; }
        /// <summary>
        /// 添加10个学生
        /// </summary>
        /// <returns></returns>
        public List<Student> AddStudent()
        {
            List<Student> students = new List<Student>();
            for (int i = 0; i<10; i++)
            {
                var student = new Student()
                {
                    Id = i,
                    Name="李"+i,
                    Score = new Random().Next(0, 100),
                };
                students.Add(student);
            }
            return students;
        }
    }
    
}
